package com.easygoods.request;

import com.bestvike.stone.core.lang.StringUtils;
import com.bestvike.stone.spring.page.PageableRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by 许崇雷 on 2019-01-18.
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SpuSearchRequest extends PageableRequest {
    private String keyword;

    @Override
    public void assertValid() {
        super.assertValid();
        this.keyword = this.keyword == null ? StringUtils.EMPTY : StringUtils.trim(this.keyword);
    }
}
